<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>file</title>

    <script src="./jquery.js" type="text/javascript"></script>
</head>
<body>
<form method="POST" enctype="multipart/form-data" action="http://localhost:8080/uploadFile">
    <p>文件：<input type="file" name="file"/></p>
    <p><input type="submit" value="上传"/></p>
</form>

<button onclick="getCadNamesTest()">getCadNamesTest</button>

</body>
</html>

<script>
    function getCadNamesTest() {
        $.ajax({
            type: "GET",
            url: "http://localhost:8081/getCadNames",
            data: {projectId:'P2018041040'},
            success:function (response) {
                console.log('success',response)
            },
            error:function (error) {
                console.log('error')
            }
        })
    }
    
</script>